
#include "../xinfoqr.h"

int main()
{
	QREncoder* encoder;
	
	encoder = qr_encoder_new();
	if(NULL == encoder)
	{
		RES_INVAL("Invoke qr_encoder_new error.");
	}
	if(qr_encoder_simple_encode(encoder, 1, EC_LEVEL_L, QR_MODE_NUM, MASK_PATTERN0, (unsigned char*)"1234567890", 10, "simple-num.png") < 0)
	{
		qr_encoder_destroy(encoder);
		RES_INVAL("Invoke qr_encoder_simple_encode error.");
	}
	qr_encoder_destroy(encoder);
	return 0;
}

